﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace ZLCMS.Web.SystemManage.Test
{
    public partial class TestGrid : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

            JGridControl1.Columns.Add(new ListItem() { Text = "帐号", Value = "UserCode" });
            JGridControl1.Columns.Add(new ListItem() { Text = "用户名", Value = "UserName" });
            ListItem defPercent = new ListItem() { Text = "分成(%)", Value = "Percent" };
            defPercent.Attributes["default"] = "20";
            JGridControl1.Columns.Add(defPercent);

            ListItemCollection list = new ListItemCollection();
            list.Add(new ListItem() { Text = "录音时间", Value = "OptDate" });

            //此列被隐藏
            ListItem code = new ListItem() { Text = "编号", Value = "Code" };
            code.Attributes.CssStyle["display"] = "none";
            list.Add(code);

            list.Add(new ListItem() { Text = "配音员", Value = "Name" });
            list.Add(new ListItem() { Text = "条数", Value = "Tiaoshu" });
            list.Add(new ListItem() { Text = "时长(分)", Value = "Shichang" });
            list.Add(new ListItem() { Text = "价格", Value = "Price" });

            JGridControl2.Columns = list;
        }
    }
}